import request from "@/utils/request"

export const postArt = data =>{
  return request({
    method:'POST',
    url:'/art',
    data
  })
}

export const postAddArt = data =>{
  return request({
    method:'POST',
    url:'/art/add',
    data
  })
}

export const getArtID = params =>{
  return request({
    method:'GET',
    url:'/art/id',
    params
  })
}

export const postUpdateArt = data =>{
  return request({
    method:'POST',
    url:'/art/update',
    data
  })
}

export const postDeleteArt= data =>{
  return request({
    method:'POST',
    url:'/art/delete',
    data
  })
}

export const postAddImg = data =>{
  return request({
    method:'POST',
    url:'/art/img',
    data
  })
}